reflect.Value.typ (method)

109 uses

	reflect (current package)
		deepequal.go#L42: 			if !v1.typ().Pointers() {
		makefunc.go#L104: 	fl |= flag(v.typ().Kind())
		makefunc.go#L105: 	rcvr := Value{v.typ(), v.ptr, fl}
		map.go#L141: 	tt := (*abi.MapType)(unsafe.Pointer(v.typ()))
		map.go#L152: 	if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= abi.MapMaxElemBytes {
		map.go#L154: 		e = mapaccess_faststr(v.typ(), v.pointer(), k)
		map.go#L163: 		e = mapaccess(v.typ(), v.pointer(), k)
		map.go#L205: 	tt := (*abi.MapType)(unsafe.Pointer(v.typ()))
		map.go#L254: 	t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
		map.go#L279: 	t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
		map.go#L284: 	key = key.assignTo("reflect.MapIter.SetKey", v.typ(), target)
		map.go#L285: 	typedmemmove(v.typ(), v.ptr, key.ptr)
		map.go#L298: 	t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
		map.go#L323: 	t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
		map.go#L328: 	elem = elem.assignTo("reflect.MapIter.SetValue", v.typ(), target)
		map.go#L329: 	typedmemmove(v.typ(), v.ptr, elem.ptr)
		map.go#L340: 		t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
		map.go#L400: 	tt := (*abi.MapType)(unsafe.Pointer(v.typ()))
		map.go#L402: 	if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= abi.MapMaxElemBytes {
		map.go#L404: 		if elem.typ() == nil {
		map.go#L405: 			mapdelete_faststr(v.typ(), v.pointer(), k)
		map.go#L416: 		mapassign_faststr(v.typ(), v.pointer(), k, e)
		map.go#L427: 	if elem.typ() == nil {
		map.go#L428: 		mapdelete(v.typ(), v.pointer(), k)
		map.go#L439: 	mapassign(v.typ(), v.pointer(), k, e)
		value.go#L100: func (v Value) typ() *abi.Type {
		value.go#L113: 	if v.typ().Size() != goarch.PtrSize || !v.typ().Pointers() {
		value.go#L125: 		Type: v.typ(),
		value.go#L133: 	t := v.typ()
		value.go#L276: 	return Value{ptrTo(v.typ()), v.ptr, fl | flag(Pointer)}
		value.go#L309: 		if v.typ().Elem().Kind() != abi.Uint8 {
		value.go#L315: 		if v.typ().Elem().Kind() != abi.Uint8 {
		value.go#L322: 		n := int((*arrayType)(unsafe.Pointer(v.typ())).Len)
		value.go#L332: 	if v.typ().Elem().Kind() != abi.Int32 {
		value.go#L392: 	t := (*funcType)(unsafe.Pointer(v.typ()))
		value.go#L782: 			if v.typ() == nil {
		value.go#L879: 	if v.typ().Kind() == abi.Interface {
		value.go#L880: 		tt := (*interfaceType)(unsafe.Pointer(v.typ()))
		value.go#L896: 		rcvrtype = v.typ()
		value.go#L897: 		ms := v.typ().ExportedMethods()
		value.go#L902: 		if !nameOffFor(v.typ(), m.Name).IsExported() {
		value.go#L905: 		ifn := textOffFor(v.typ(), m.Ifn)
		value.go#L907: 		t = (*funcType)(unsafe.Pointer(typeOffFor(v.typ(), m.Mtyp)))
		value.go#L917: 	t := v.typ()
		value.go#L1167: 		return v.typ().Len()
		value.go#L1171: 		if v.typ().Elem().Kind() == abi.Array {
		value.go#L1172: 			return v.typ().Elem().Len()
		value.go#L1185: 	tt := (*chanType)(unsafe.Pointer(v.typ()))
		value.go#L1232: 			if !v.typ().IsDirectIface() {
		value.go#L1253: 		tt := (*ptrType)(unsafe.Pointer(v.typ()))
		value.go#L1268: 	tt := (*structType)(unsafe.Pointer(v.typ()))
		value.go#L1315: 			if v.Kind() == Pointer && v.typ().Elem().Kind() == abi.Struct {
		value.go#L1338: 			if v.Kind() == Ptr && v.typ().Elem().Kind() == abi.Struct {
		value.go#L1340: 					return Value{}, errors.New("reflect: indirection through nil pointer to embedded struct field " + nameFor(v.typ().Elem()))
		value.go#L1355: 	if f, ok := toRType(v.typ()).FieldByName(name); ok {
		value.go#L1366: 	if f, ok := toRType(v.typ()).FieldByNameFunc(match); ok {
		value.go#L1402: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L1425: 		tt := (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L1565: 		iface := *(*any)(unsafe.Pointer(&abi.EmptyInterface{Type: v.typ(), Data: nil}))
		value.go#L1579: 	if typ != v.typ() {
		value.go#L1681: 		typ := (*abi.ArrayType)(unsafe.Pointer(v.typ()))
		value.go#L1712: 		typ := (*abi.StructType)(unsafe.Pointer(v.typ()))
		value.go#L1833: 		typedmemclr(v.typ(), v.ptr)
		value.go#L1860: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L1870: 		if v.typ().Elem().Kind() == abi.Array {
		value.go#L1871: 			return v.typ().Elem().Len()
		value.go#L1899: 	if v.typ() == nil {
		value.go#L1902: 	if v.flag&flagMethod != 0 || uint(i) >= uint(toRType(v.typ()).NumMethod()) {
		value.go#L1905: 	if v.typ().Kind() == abi.Interface && v.IsNil() {
		value.go#L1911: 	return Value{v.typ(), v.ptr, fl}
		value.go#L1920: 	if v.typ() == nil {
		value.go#L1926: 	return toRType(v.typ()).NumMethod()
		value.go#L1939: 	if v.typ() == nil {
		value.go#L1945: 	m, ok := toRType(v.typ()).MethodByName(name)
		value.go#L1956: 	tt := (*structType)(unsafe.Pointer(v.typ()))
		value.go#L1999: 		bitSize := v.typ().Size() * 8
		value.go#L2047: 		if !v.typ().Pointers() {
		value.go#L2098: 	tt := (*chanType)(unsafe.Pointer(v.typ()))
		value.go#L2131: 	tt := (*chanType)(unsafe.Pointer(v.typ()))
		value.go#L2157: 	x = x.assignTo("reflect.Set", v.typ(), target)
		value.go#L2160: 			typedmemclr(v.typ(), v.ptr)
		value.go#L2162: 			typedmemmove(v.typ(), v.ptr, x.ptr)
		value.go#L2183: 	if toRType(v.typ()).Elem().Kind() != Uint8 { // TODO add Elem method, fix mustBe(Slice) to return slice.
		value.go#L2195: 	if v.typ().Elem().Kind() != abi.Int32 {
		value.go#L2337: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L2343: 		typ = (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L2357: 		return Value{v.typ(), unsafe.Pointer(&t), v.flag}
		value.go#L2399: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L2405: 		typ = (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L2493: 		return v.typ()
		value.go#L2503: 	typ := v.typ()
		value.go#L2505: 		return v.typ()
		value.go#L2511: 	if v.typ().Kind() == abi.Interface {
		value.go#L2571: 	if v.typ() == nil {
		value.go#L2600: 		if !v.typ().Pointers() {
		value.go#L2744: 		t := v.typ().Elem()
		value.go#L2777: 		st := (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L2780: 		mapclear(v.typ(), v.pointer())
		value.go#L2832: 		stringCopy = sk == String && dst.typ().Elem().Kind() == abi.Uint8
		value.go#L2839: 	de := dst.typ().Elem()
		value.go#L2841: 		se := src.typ().Elem()
		value.go#L2976: 			tt := (*chanType)(unsafe.Pointer(ch.typ()))
		value.go#L3007: 			tt := (*chanType)(unsafe.Pointer(ch.typ()))
		value.go#L3187: 	case directlyAssignable(dst, v.typ()):
		value.go#L3194: 	case implements(dst, v.typ()):
		value.go#L3214: 	panic(context + ": value of type " + stringFor(v.typ()) + " is not assignable to type " + stringFor(dst))
		value.go#L3224: 	op := convertOp(t.common(), v.typ())
		value.go#L3226: 		panic("reflect.Value.Convert: value of type " + stringFor(v.typ()) + " cannot be converted to type " + t.String())